package com.macro.mall.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.service.FeignPortalMemberService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 *
 */
@Tag(name = "FeignPortalMemberController", description = "Feign调用mall-portal接口示例")
@RestController
@RequestMapping("/feign/portal")
public class FeignPortalMemberController {

    @Autowired
    private FeignPortalMemberService feignPortalMemberService;

    @Operation(summary = "统计会员信息")
    @GetMapping("/statisticalMemberInfo")
    public CommonResult statisticalMemberInfo() {
        return feignPortalMemberService.statisticalMemberInfo();

    }
}
